package com.pro.entry;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

public class JsBeforeUser {

  private Integer userId;
  private String photoImg;
  private String account;
  private String nickname;
  private Integer userCode;
  private String avatarUrl;
  private Integer studyDate;
  private Integer status;
  private String freestyle;
  private String idCard;
  private String phone;
  private Integer sex;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private String birthDate;
  private String email;
  private String remarks;
  private String intention;
  private String consumption;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private String createDate;
  private String fullName;
  private String password;
  private String openId;

  public JsBeforeUser() {
  }

  public JsBeforeUser(Integer userId, String photoImg, String account, String nickname, Integer userCode, String avatarUrl, Integer studyDate, Integer status, String freestyle, String idCard, String phone, Integer sex, String birthDate, String email, String remarks, String intention, String consumption, String createDate, String fullName, String password, String openId) {
    this.userId = userId;
    this.photoImg = photoImg;
    this.account = account;
    this.nickname = nickname;
    this.userCode = userCode;
    this.avatarUrl = avatarUrl;
    this.studyDate = studyDate;
    this.status = status;
    this.freestyle = freestyle;
    this.idCard = idCard;
    this.phone = phone;
    this.sex = sex;
    this.birthDate = birthDate;
    this.email = email;
    this.remarks = remarks;
    this.intention = intention;
    this.consumption = consumption;
    this.createDate = createDate;
    this.fullName = fullName;
    this.password = password;
    this.openId = openId;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getPhotoImg() {
    return photoImg;
  }

  public void setPhotoImg(String photoImg) {
    this.photoImg = photoImg;
  }

  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  public Integer getUserCode() {
    return userCode;
  }

  public void setUserCode(Integer userCode) {
    this.userCode = userCode;
  }

  public String getAvatarUrl() {
    return avatarUrl;
  }

  public void setAvatarUrl(String avatarUrl) {
    this.avatarUrl = avatarUrl;
  }

  public Integer getStudyDate() {
    return studyDate;
  }

  public void setStudyDate(Integer studyDate) {
    this.studyDate = studyDate;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getFreestyle() {
    return freestyle;
  }

  public void setFreestyle(String freestyle) {
    this.freestyle = freestyle;
  }

  public String getIdCard() {
    return idCard;
  }

  public void setIdCard(String idCard) {
    this.idCard = idCard;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Integer getSex() {
    return sex;
  }

  public void setSex(Integer sex) {
    this.sex = sex;
  }

  public String getBirthDate() {
    return birthDate;
  }

  public void setBirthDate(String birthDate) {
    this.birthDate = birthDate;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  public String getIntention() {
    return intention;
  }

  public void setIntention(String intention) {
    this.intention = intention;
  }

  public String getConsumption() {
    return consumption;
  }

  public void setConsumption(String consumption) {
    this.consumption = consumption;
  }

  public String getCreateDate() {
    return createDate;
  }

  public void setCreateDate(String createDate) {
    this.createDate = createDate;
  }

  public String getFullName() {
    return fullName;
  }

  public void setFullName(String fullName) {
    this.fullName = fullName;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getOpenId() {
    return openId;
  }

  public void setOpenId(String openId) {
    this.openId = openId;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof JsBeforeUser)) return false;

    JsBeforeUser that = (JsBeforeUser) o;

    if (getUserId() != null ? !getUserId().equals(that.getUserId()) : that.getUserId() != null) return false;
    if (getPhotoImg() != null ? !getPhotoImg().equals(that.getPhotoImg()) : that.getPhotoImg() != null) return false;
    if (getAccount() != null ? !getAccount().equals(that.getAccount()) : that.getAccount() != null) return false;
    if (getNickname() != null ? !getNickname().equals(that.getNickname()) : that.getNickname() != null) return false;
    if (getUserCode() != null ? !getUserCode().equals(that.getUserCode()) : that.getUserCode() != null) return false;
    if (getAvatarUrl() != null ? !getAvatarUrl().equals(that.getAvatarUrl()) : that.getAvatarUrl() != null)
      return false;
    if (getStudyDate() != null ? !getStudyDate().equals(that.getStudyDate()) : that.getStudyDate() != null)
      return false;
    if (getStatus() != null ? !getStatus().equals(that.getStatus()) : that.getStatus() != null) return false;
    if (getFreestyle() != null ? !getFreestyle().equals(that.getFreestyle()) : that.getFreestyle() != null)
      return false;
    if (getIdCard() != null ? !getIdCard().equals(that.getIdCard()) : that.getIdCard() != null) return false;
    if (getPhone() != null ? !getPhone().equals(that.getPhone()) : that.getPhone() != null) return false;
    if (getSex() != null ? !getSex().equals(that.getSex()) : that.getSex() != null) return false;
    if (getBirthDate() != null ? !getBirthDate().equals(that.getBirthDate()) : that.getBirthDate() != null)
      return false;
    if (getEmail() != null ? !getEmail().equals(that.getEmail()) : that.getEmail() != null) return false;
    if (getRemarks() != null ? !getRemarks().equals(that.getRemarks()) : that.getRemarks() != null) return false;
    if (getIntention() != null ? !getIntention().equals(that.getIntention()) : that.getIntention() != null)
      return false;
    if (getConsumption() != null ? !getConsumption().equals(that.getConsumption()) : that.getConsumption() != null)
      return false;
    if (getCreateDate() != null ? !getCreateDate().equals(that.getCreateDate()) : that.getCreateDate() != null)
      return false;
    if (getFullName() != null ? !getFullName().equals(that.getFullName()) : that.getFullName() != null) return false;
    if (getPassword() != null ? !getPassword().equals(that.getPassword()) : that.getPassword() != null) return false;
    return getOpenId() != null ? getOpenId().equals(that.getOpenId()) : that.getOpenId() == null;

  }

  @Override
  public int hashCode() {
    int result = getUserId() != null ? getUserId().hashCode() : 0;
    result = 31 * result + (getPhotoImg() != null ? getPhotoImg().hashCode() : 0);
    result = 31 * result + (getAccount() != null ? getAccount().hashCode() : 0);
    result = 31 * result + (getNickname() != null ? getNickname().hashCode() : 0);
    result = 31 * result + (getUserCode() != null ? getUserCode().hashCode() : 0);
    result = 31 * result + (getAvatarUrl() != null ? getAvatarUrl().hashCode() : 0);
    result = 31 * result + (getStudyDate() != null ? getStudyDate().hashCode() : 0);
    result = 31 * result + (getStatus() != null ? getStatus().hashCode() : 0);
    result = 31 * result + (getFreestyle() != null ? getFreestyle().hashCode() : 0);
    result = 31 * result + (getIdCard() != null ? getIdCard().hashCode() : 0);
    result = 31 * result + (getPhone() != null ? getPhone().hashCode() : 0);
    result = 31 * result + (getSex() != null ? getSex().hashCode() : 0);
    result = 31 * result + (getBirthDate() != null ? getBirthDate().hashCode() : 0);
    result = 31 * result + (getEmail() != null ? getEmail().hashCode() : 0);
    result = 31 * result + (getRemarks() != null ? getRemarks().hashCode() : 0);
    result = 31 * result + (getIntention() != null ? getIntention().hashCode() : 0);
    result = 31 * result + (getConsumption() != null ? getConsumption().hashCode() : 0);
    result = 31 * result + (getCreateDate() != null ? getCreateDate().hashCode() : 0);
    result = 31 * result + (getFullName() != null ? getFullName().hashCode() : 0);
    result = 31 * result + (getPassword() != null ? getPassword().hashCode() : 0);
    result = 31 * result + (getOpenId() != null ? getOpenId().hashCode() : 0);
    return result;
  }

  @Override
  public String toString() {
    return "JsBeforeUser{" +
            "userId=" + userId +
            ", photoImg='" + photoImg + '\'' +
            ", account='" + account + '\'' +
            ", nickname='" + nickname + '\'' +
            ", userCode=" + userCode +
            ", avatarUrl='" + avatarUrl + '\'' +
            ", studyDate=" + studyDate +
            ", status=" + status +
            ", freestyle='" + freestyle + '\'' +
            ", idCard='" + idCard + '\'' +
            ", phone='" + phone + '\'' +
            ", sex=" + sex +
            ", birthDate='" + birthDate + '\'' +
            ", email='" + email + '\'' +
            ", remarks='" + remarks + '\'' +
            ", intention='" + intention + '\'' +
            ", consumption='" + consumption + '\'' +
            ", createDate='" + createDate + '\'' +
            ", fullName='" + fullName + '\'' +
            ", password='" + password + '\'' +
            ", openId='" + openId + '\'' +
            '}';
  }
}
